package com.adcc.ags.cgw.service;

import com.adcc.ags.cgw.entity.msg.CGWMsg;

/**
 * 消息发送服务
 */
public abstract class MsgSenderService extends BaseActorService{

    /**
     * 记录报文发送数
     * @param userId
     * @param type(0:下行,1:上行)
     */
    protected abstract void recordMsgSndCount(String userId,int type);

    /**
     * 发送下行报文
     * @param msg
     */
    protected abstract void sendDownlinkMsg(CGWMsg msg);

    /**
     * 发送上行报文
     * @param msg
     */
    protected abstract void sendUplinkMsg(CGWMsg msg);

    /**
     * 发送地地报文
     * @param msg
     */
    protected abstract void sendGroundMsg(CGWMsg msg);
}
